/**
 * 
 */
package com.slim.dao;

import java.util.List;

import org.appfuse.dao.GenericDao;
import org.appfuse.model.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author happy home
 *
 */
public interface UserDaoService extends GenericDao<User, Long>
 {
	@Transactional
	  public abstract UserDetails loadUserByUsername(String paramString)
	    throws UsernameNotFoundException;

	  public abstract List<User> getUsers();

	  public abstract User saveUser(User paramUser);

	  @Transactional(propagation=Propagation.NOT_SUPPORTED)
	  public abstract String getUserPassword(String paramString);


}
